package com.example;

import com.example.config.SpringConfig;
import com.example.config.SpringMvcConfig;
import com.example.controller.UserController;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class app {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext=new AnnotationConfigApplicationContext(SpringConfig.class);
        System.out.println(applicationContext.getBean(UserController.class));
    }
}
